package com.fashiontextile.user.service;

import com.fashiontextile.common.entity.R;
import com.fashiontextile.user.entity.Role;
import com.fashiontextile.user.entity.User;

import java.util.Date;
import java.util.List;

/**
 * @author brooke_zb
 */
public interface UserService {
    User selectByUid(Long uid);

    User selectByUsername(String username);

    User selectByEmail(String email);

    Integer updateEmail(String newEmail, Long uid);

    Integer updateAvatar(String avatarUrl, Long uid);

    Integer updatePasswold(String newpasswold, Long uid);

    Integer insertUser(User user);

    List<User> getAllUser(String keyword);

    Integer updateUserStatus(Long uid,Integer enable);

    R<?> changeRoleByUid(long uid,Integer rid);
}
